package com.ztc.ZtcRouteAttachment.bean;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.aqgj.Attachment.bean.Attachment;
import com.aqgj.util.BaseEntity;
import com.ztc.ZtcRoute.bean.ZtcRoute;

@Entity
@Table(name = "ztc_route_attachment")
public class ZtcRouteAttachment implements BaseEntity{

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;//

    private String viewContent;//é£Žæ™¯è¯´æ˜Ž
    
    private String fkAttachmentId;

    private java.lang.Integer sequence;//æ·»åŠ é¡ºåº�

    private String fkZtcRouteId;//ç�­æ¬¡id
    
    private java.lang.Integer groupNumber;
    
    private java.lang.Integer type;
    
    private ZtcRoute ztcRoute;
    
    private Attachment attachment;

    public void setId(String value){
        this.id = value;
    }
   
    public void setSequence(java.lang.Integer value){
        this.sequence = value;
    }
   
	public void setViewContent(String viewContent) {
		this.viewContent = viewContent;
	}
	
	public void setFkAttachmentId(String fkAttachmentId) {
		this.fkAttachmentId = fkAttachmentId;
	}
	public void setFkZtcRouteId(String fkZtcRouteId) {
		this.fkZtcRouteId = fkZtcRouteId;
	}
	public void setZtcRoute(ZtcRoute ztcRoute) {
		this.ztcRoute = ztcRoute;
	}
	public void setAttachment(Attachment attachment) {
		this.attachment = attachment;
	}
	public void setGroupNumber(java.lang.Integer groupNumber) {
		this.groupNumber = groupNumber;
	}
	public void setType(java.lang.Integer type) {
		this.type = type;
	}
	@Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="view_content",unique=false,nullable=true,insertable=true,updatable=true,length=2147483647)
    public String getViewContent() {
		return viewContent;
	}
    @Column(name ="sequence",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public java.lang.Integer getSequence(){
        return this.sequence;
    }
    @Column(name ="fk_attachment_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkAttachmentId() {
		return fkAttachmentId;
	}
    @Column(name ="fk_ztc_route_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
	public String getFkZtcRouteId() {
		return fkZtcRouteId;
	}
    @Column(name ="group_number",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public java.lang.Integer getGroupNumber() {
		return groupNumber;
	}
    @Column(name ="type",unique=false,nullable=true,insertable=true,updatable=true,length=1)
	public java.lang.Integer getType() {
		return type;
	}
	@Transient
	public ZtcRoute getZtcRoute() {
		return ztcRoute;
	}
    @Transient
	public Attachment getAttachment() {
		return attachment;
	}
} 
